<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>资讯管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
        <div class="sub-colum">
		    <div class="tit">代理商管理</div>
		    <ul>
		    	<li class="curr"><a href="">下级机构列表</a></li>
		    </ul>
		</div>
        <!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
				<div class="tit p-lr20">
				    <span class="curr">下级机构列表</span>
				</div>
		<!--star内容区域-->
		<div class="mainScroll">
			<div class="mainContainer line-all">
				<!--star 001-->
				<form class="layui-form layui-form-pane" method="post">
					<input type="hidden" name="id" value="<{$school_info['id']|default:'0'}>" />
					<div class="layui-form-item">
						<label class="layui-form-label">机构名称</label>
						<div class="layui-input-block">
							<input type="text" disabled value="<{$school_info.school_name|default:''}>" lay-verify="required" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">PC端域名</label>
						<div class="layui-input-block">
							<input type="text" disabled value="<{$school_info.url_web|default:''}>" lay-verify="required" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">微信端域名</label>
						<div class="layui-input-block">
							<input type="text" disabled value="<{$school_info.url_wap|default:''}>" lay-verify="required" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">有效期</label>
						<div class="layui-input-block">
							<input type="text" disabled name="sort" value="<{$school_info.start_date}> 至 <{$school_info.end_date}>" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">机构地址</label>
						<div class="layui-input-block">
							<input type="text" disabled name="sort" value="<{$school_info.province_name}> <{$school_info.city_name}> <{$school_info.area_name}> <{$school_info.school_address}> " autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">联系人</label>
						<div class="layui-input-block">
							<input type="text" disabled name="sort" value="<{$school_info.link_man}> " autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">联系电话</label>
						<div class="layui-input-block">
							<input type="text" disabled name="sort" value="<{$school_info.link_tel}> 、 <{$school_info.link_phone}> " autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">视频激活码</label>
						<div class="layui-input-block">
							<input type="text" disabled name="sort" value="共：（<{$school_info.no_use_course.count + $school_info.y_use_course.count}>个），已使用（<{$school_info.y_use_course.count}>个），未使用（<{$school_info.no_use_course.count}>个）" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">题库激活码</label>
						<div class="layui-input-block">
							<input type="text" disabled name="sort" value="共：（<{$school_info.no_use_topic.count + $school_info.y_use_topic.count}>个），已使用（<{$school_info.y_use_topic.count}>个），未使用（<{$school_info.no_use_topic.count}>个）" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-form-item">
						<label class="layui-form-label">实训激活码</label>
						<div class="layui-input-block">
							<input type="text" disabled name="sort" value="共：（<{$school_info.no_use_shixun.count + $school_info.y_use_shixun.count}>个），已使用（<{$school_info.y_use_shixun.count}>个），未使用（<{$school_info.no_use_shixun.count}>个）" autocomplete="off" class="layui-input">
						</div>
					</div>

					<div class="layui-input-block">
						<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</form>
				<!--end 001-->
				
			</div>
			
		</div>
		<!--end内容区域-->
		</div>
	</div>
</div>
<{include file="footer.html"}>
<script type="text/javascript">
	layui.use(['form','jquery'], function(){
		var form = layui.form(),$ = layui.jquery;
		form.on('select(category)', function(data){
			var ii = layer.load();
			var category_id = $(data.elem).val();
			$("#category_id").html('<option value="">请选择二级分类</option>');  
			form.render('select');
			$.ajax({
				type: "POST",
				url: "/news/ignore_get_children_category",
				dataType:"json",
				data:{category_id:category_id},
				success: function(result){
					layer.close(ii);
					if(result.code == 1){
						$("#category_id_box").show();
						var html ='';
						$.each(result.category_list, function(i, obj) {
							html += '<option value="'+obj.id+'">'+obj.name+'</option>';
						});
						$("#category_id").append(html);
						form.render('select');
					}else{
						$("#category_id_box").hide();
					}
				}
			});
		});
	});
</script>
</body>
</html>



